package com.aaa.springboot.service.impl;

import com.aaa.springboot.dao.TUserDao;
import com.aaa.springboot.pojo.TUser;
import com.aaa.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {


    @Autowired
    private TUserDao tUserDao;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tUserDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TUser record) {
        return tUserDao.insert(record);
    }

    @Override
    public int insertSelective(TUser record) {
        return tUserDao.insertSelective(record);
    }

    @Override
    public TUser selectByPrimaryKey(Long id) {
        return tUserDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TUser record) {
        return tUserDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TUser record) {
        return tUserDao.updateByPrimaryKey(record);
    }

    @Override
    public TUser selectByUsernameTUser(String username) {
        return tUserDao.selectByUsernameTUser(username);
    }
}
